package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserPledgeRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.AdminPagePledgeRecordsRecordVO;
import com.sc.nft.entity.vo.PledgeSecretAreaPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 质押任务-用户质押记录(sc_user_pledge_records)数据Mapper
 *
 * @author kancy
 * @since 2023-06-13 14:55:14
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserPledgeRecordsMapper extends BaseMapper<UserPledgeRecords> {

    /**
     * 管理后台-分页查询质押记录
     * @param page
     * @param userTel
     * @return
     */
    Page<AdminPagePledgeRecordsRecordVO> adminPagePledgeRecordsRecord(Page page,@Param("pledgeTaskId") Long pledgeTaskId, @Param("userTel") String userTel);

    /**
     * 分页获取用户质押记录
     * @param page
     * @param userId
     * @return
     */
    Page<PledgeSecretAreaPageVO> pledgeSecretAreaPage(Page page, @Param("userId") Long userId,@Param("pledgeTaskId") Long pledgeTaskId);

    /**
     * 获取一分钟后质押完成的数据
     * @return
     */
    List<UserPledgeRecords> getListOneMinuteLater();
}
